package org.dromara.business.domain.bo;

import org.dromara.business.domain.BusinessCollect;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户收藏业务对象 business_collect
 *
 * @author zlj
 * @date 2024-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusinessCollect.class, reverseConvertGenerate = false)
public class BusinessCollectBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long businessCollectId;

    /**
     * 收藏人id
     */
    @NotNull(message = "收藏人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 被收藏人id
     */
    @NotNull(message = "被收藏人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userIdPassivity;


}
